import path from 'path';

export default {
	engine:'aliyun',
	aliyun:{ //阿里云翻译
		accessKeyId: 'LTAI5t8fuC6xD1n4FffHtUbq',
		accessKeySecret: 'nXK68wjL26MAKstA4k5VIcHTqp68Cg',
		region: 'cn-hangzhou',
		endpoint: 'mt.cn-hangzhou.aliyuncs.com',
		apiVersion: '2018-10-12',
		showProgress: true,
	},
	baidu:{ //百度翻译
		showProgress:false,
		appid: '20210930000960868',
		secret: 'LGM72ZezVRutwJcJ5OWz',
	},
	autoReWriter:true, //是否自动执行重写文件
	toTranslateLang:['en','fil','de'],// 如需要翻译至更多的语言,只需将语种代码加入该数组
	scanPath: path.resolve('./source'),  //需要扫描的目录 vue文件自动提取中文
	// scanPath：path.resolve('E:/zbProject/slaughter-app/pages','./board'),
	patchTranslation:{
		scanPath: path.resolve('./dist/lang'), //扫描文件夹
		source:'en', //源语言
		patch:true //是否需要补全翻译。false 所有键值重新翻译谨慎使用
	}
}